package com.netease.framework;

import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.InflateException;
import android.view.LayoutInflater;
import android.view.LayoutInflater.Factory;
import android.view.View;
import com.netease.pris.app.PrisApp;

class a
  implements LayoutInflater.Factory
{
  private LayoutInflater b;
  private k c;

  public a(ActivityEx paramActivityEx)
  {
    this.c = k.a(paramActivityEx.getApplicationContext());
    String str = PrisApp.a().A();
    if (paramActivityEx.getPackageName().equals(str));
    while (true)
    {
      return;
      h localh = a(str);
      this.c.a(localh);
    }
  }

  private h a(String paramString)
  {
    Object localObject = null;
    if (TextUtils.isEmpty(paramString));
    while (true)
    {
      return localObject;
      if (paramString.matches("pris\\.skin\\..*"))
        try
        {
          localf = new f(this.a, paramString);
          localObject = localf;
        }
        catch (PackageManager.NameNotFoundException localNameNotFoundException)
        {
          while (true)
          {
            localNameNotFoundException.printStackTrace();
            f localf = null;
          }
        }
      if (!paramString.matches("internal\\.skin\\..*"))
        continue;
      localObject = new d(this.a);
    }
  }

  public View onCreateView(String paramString, Context paramContext, AttributeSet paramAttributeSet)
  {
    this.b = ((LayoutInflater)paramContext.getSystemService("layout_inflater"));
    String[] arrayOfString = ActivityEx.q();
    int i = arrayOfString.length;
    int j = 0;
    Object localObject = null;
    if ((localObject != null) || (j >= i))
    {
      if (localObject != null)
        break label130;
      localObject = null;
    }
    while (true)
    {
      while (true)
      {
        return localObject;
        try
        {
          if (-1 == paramString.indexOf('.'))
          {
            localObject = this.b.createView(paramString, arrayOfString[j], paramAttributeSet);
            break;
          }
          View localView = this.b.createView(paramString, null, paramAttributeSet);
          localObject = localView;
        }
        catch (InflateException localInflateException)
        {
          localInflateException.printStackTrace();
          throw localInflateException;
        }
        catch (ClassNotFoundException localClassNotFoundException)
        {
          Log.w("ActivityEx", localClassNotFoundException.getMessage());
          j++;
        }
      }
      break;
      label130: this.c.a((View)localObject, paramAttributeSet);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.a
 * JD-Core Version:    0.6.0
 */